package com.jingxi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class CommandController {

	
	@RequestMapping("/index")
	public String getIndex() {
		return "index";
	}
	
	@RequestMapping("/item-list")
	public String goItemList() {
		return "item-list";
	}
	
	@RequestMapping("/item-add")
	public String goItemAdd() {
		return "item-add";
	}
	
	@RequestMapping("/rest/page/item-edit")
	public String goItemEdit() {
		return "item-edit";
	}

	/**
	 * 规格参数页面
	 */
	@RequestMapping("/item-param-list")
	public String goItemParamList() {
		return "item-param-list";
	}
	
	@RequestMapping("/item-param-add")
	public String itemParamAdd() {
		return "item-param-add";
	}
	
	/**
	 * 内容管理
	 * 
	 */
	@RequestMapping("/content")
	public String goContent() {
		return "content";
	}
	
	@RequestMapping("/content-add")
	public String contentAdd() {
		return "content-add";
	}
	
	@RequestMapping("/content-category")
	public String contentCategory() {
		return "content-category";
	}
	
	@RequestMapping("/content-edit")
	public String contentEdit() {
		return "content-edit";
	}
	
	
}
